<?php
/**
 * Created by PhpStorm.
 * User: jr
 * Date: 17.04.14
 * Time: 18:07
 */

function api_pcrmGetOffeneAufgaben($host, $user, $pass) {

    $API_URL = "https://".$host.".pcrm.ch/api.php?u=".$user."&p=". $pass;

    $ch = curl_init($API_URL);
    curl_setopt($ch, CURLOPT_HTTPGET, 1);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $output = curl_exec($ch);
    curl_close($ch);

    return json_decode($output, TRUE);
}

?>